<?php
	if(isset($_POST))
	{
		if(@$_POST['logout'])
		{
			require_once 'Controllers/UserController.php';
			$u = new UserController();
			$u->logout();
			//Relocate to remove _POST param in the browser's address.
			//header('Location: index.php');
		}
	}
	require_once 'Helpers/PathHelper.php';
	require_once 'Views/commons.php';
?>
<html>
	<head>
	<title>School Enrolment :: Welcome</title>
	<link type="text/css" href="assets/styles.css" rel="stylesheet">
		<style>
			div
			{
				display: block;
				border: 0px solid black;
			}
			.search
			{
				width: 300px;
				height: 70px;
				position: absolute;
				top: 30%;
				left: 50%;
				margin-left: -150px;
				text-align: left;
			}
		</style>
	</head>
	<body>
	  <div class="container">
	    <?php renderHomeNav(); ?>
  		<div class="search">
  			WELCOME TO YOUR ENROLLMENT SYSTEM<br /><br />
  			Please click on the links at the top-right of the page to login to your account.
  		</div>
  	</div>
	</body>
</html>